import "./style.css";

import MyImage from "./assets/images/4409643a79630f132d31fd171bac184c.jpeg";

const img = document.createElement("img");

img.src = MyImage;

document.body.appendChild(img);
img.classList.add("card")

function getRandomInt(min, max) {
    min = Math.ceil(min);
    max = Math.floor(max);
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
img.addEventListener("mousemove", (e) => {
    img.style.setProperty("--rX", e.offsetX + "deg");
    img.style.setProperty("--rY", e.offsetX + "deg");
})
console.log(getRandomInt(0, 360))
console.log(window)